<template>
  <r-header />
  <div>
    <div class="con">
      
        <r-logo class="logo" />
        <div>
          <div class="text">手机号</div>
          <input class="input" type="text" v-model="form.user_id" placeholder="请输入手机号" maxlength="14" />
          <div class="text">密码</div>
          <input class="input" type="password" v-model="form.password" placeholder="请输入密码" maxlength="14" />
        </div>
        <div class="button">
          <div class="btlogin" @click="login()">立即登录</div>
        </div>
        <div class="qwq">
        <div>还没有账号？</div>
        <router-link to="/signup">
          <div class="but">注册账号→</div>
        </router-link>
      </div>
      
    </div>
  </div>
</template>

<script type="text/javascript">
export default {
  name: "signin",
  data() {
    return {
      form: {
        user_id: "17777359190",
        password: "123456",
      }
    }
  },
  props: {
  },
  computed: {
  },
  methods: {
    login() {
      // this.api.login_separate(this.form).then(i => {
      //   console.log("login", i);
      //   this.$router.push('/my')
      // })
      this.is.LoginByPassword({
        phone: this.form.user_id,
        password: this.form.password,
      }).then(i => {
        alert("登录成功")
        this.$router.push('/my')
      })
    }
  },
  mounted() {
  },
}
</script>

<style lang="scss" scoped>
.con {
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  align-items: center;
  justify-content: center;

}

.main {
  // border: 6px solid #090000;
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  background-color: #032850;
  backdrop-filter: blur(3px);
  filter: drop-shadow(5px 5px 10px #000000);
  align-items: center;
  justify-content: center;
}

.logo {
  filter: drop-shadow(15px 10px 5px black);
  margin-top: 20px;
  margin-bottom: 40px;
}

.text {
  color: white;
  margin-bottom: 8px;
}

.input {
  position: relative;
  padding: 2px 2px 2px 2px;
  width: 350px;
  height: 40px;
  margin-bottom: 20px;
  font-size: 20px;
  border: 1.5px solid #fafafa;
  border-radius: 10px;
  background-color: transparent;
  outline: none;
  flex: 1;
  color: white;
  transition: all 0.5s;
}

.input:focus {
  box-shadow: 0 0 5px #03e9f4, 0 0 10px #03e9f4, 0 0 25px #03e9f4,
}

.button {
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.btlogin {
  background: #0e5271;
  border-radius: 10px;
  margin: 20px 20px;
  padding: 5px;
  width: 200px;
  height: 40px;
  text-align: center;
  padding-top: 10px;
  text-decoration: none;
  transition: all 0.5s;
}

.btlogin:hover {
  background-color: #03e9f4;
  box-shadow: 0 0 5px #03e9f4, 0 0 25px #03e9f4, 0 0 50px #03e9f4,
}
.qwq {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 14px;
    height: 40px;
    color: #ffffff;
    font-size: 0.875rem;

    .but {
      margin-left: 16px;
      padding: 10px 16px;
      width: 106px;
      font-size: 0.875rem;
      font-weight: 600;
      color: #37bcf7;
      border: 2px solid #37bcf7;
      border-radius: 0.5rem;
      cursor: pointer;

    }
  }


@media screen and (max-width:660px) {
  .con {
    padding-top: 80px;
   }
.input {
  width: 250px;
}
}
</style>